<link rel="stylesheet" type="text/css" media="all" href="/css/colorbox.css">
	<script src="/js/jquery.js"></script>
	<script src="/js/jquery.colorbox.min.js"></script>
	<div class="container_12">
		<div class="grid_12 ambientes ">
		<?php $conta = 1;?>
		<?php foreach($this->paginator as $galeria):?>
		<?php if($conta == 1):?>
			<div class="imageRow">
		<?php endif;?>
		<?php if($conta == 4):?>
		  </div>
		  <?php $contador = 0;?>
		<?php endif;?>
			
<?php foreach($this->paginator as $galeria):?>
<?php if($conta == 0):?>

<?php endif;?>
<?php $conta++;?>
                        
		<div class="tendencias">
			<a href="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . '/tendencias/visualizar/id/'. $galeria['id_galeria']; ?>"><img height="150" width="200" src="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . '/galeria_capas/'. $galeria['id_galeria'] . '.jpg'; ?>" alt="" /></a><br />
			<a href="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . '/tendencias/visualizar/id/'. $galeria['id_galeria']; ?>" class="color-3 decor"><?php echo $this->GetGaleria($galeria['id_galeria']);?></a>
		</div>
                            
<?php if($conta == 4):?>

<?php $conta = 0;?>
<?php endif;?>
<?php endforeach;?>
			
		<?php $conta++;?>
		<?php endforeach;?>
</div>
</div>
<div class="clear"></div>